package com.hue.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author 姚凤桥
 * @since 2021-07-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ToString
@Accessors(chain = true)
@ApiModel(value="User对象", description="")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "mobile", type = IdType.ID_WORKER)
    private String mobile;

    private String nickname;

    private String password;

    private String salt;

    private String head;

    @TableField("registerDate")
    private Date registerDate;

    @TableField("lastLoginDate")
    private Date lastLoginDate;

    @TableField("loginCount")
    private Long loginCount;
}
